﻿<%@ Page Language="C#" MasterPageFile="~/Views/Compartido/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<CinePlancito.CarteleraWS.Cartelera>>" %>


<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .style8
        {
            font-size: small;
            font-weight: bold;
            font-style: italic;
            width: 101px;
        }
        .style9
        {
            width: 820px;
        }
        .style10
        {
            width: 390px;
        }
    </style>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

 

   <h2>CARTELERA</h2>
   <table border="1">

    <% foreach (var item in Model) { %>
    <tr >
    <td class="style9" >
   <table border="0" style="width: 608px"> 
        
            <td class="style8">
                ID
            </td>

            <td class="style10">
                <%: item.IdCartelera %>
            </td>
        </tr >
        <tr >
            <td class="style8">
                NOMBRE
            </td>
            <td class="style10">
                <%: item.Pelicula.Nombre%>
            </td>
         </tr >
         <tr >
            <td class="style8">
                FECHA
            </td>
            <td class="style10">
                <%: item.Fecha%>
            </td>
          </tr >
          <tr >
            <td class="style8">
                SALA
            </td>
            <td class="style10">
                <%: item.Sala.Nombre %>
            </td>

        </tr >
         <tr >
            <td class="style8">
                HORARIO
            </td>
             <td class="style10">
                <%: item.Horario%>
            </td>
                 <td>
                <a href="<%= Url.Action("RegistrarReserva",new { IdCartelera = item.IdCartelera }) %>"> 
                <img alt="Eliminar" 
                src="<%= Url.Content("../../Imagenes/reservar.jpg") %>" title="Reservar" 
                         style="height: 19px; width: 101px" /></a> 
            </td>
        </tr>
        </table>
        </td >    
        </tr>
    <% } %>
 
 </table>
</asp:Content>